package cn.huapu.power.energy.service.impl;

import cn.huapu.power.energy.bean.Powerfees;
import cn.huapu.power.energy.bean.bo.DateParameterBo;
import cn.huapu.power.energy.bean.vo.ElectFormVo;
import cn.huapu.power.energy.bean.vo.PowerFessZBVo;
import cn.huapu.power.energy.mapper.PowerfeesMapper;
import cn.huapu.power.energy.service.PowerfeesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 测试用户权限服务实现类
 * @author autogen
 *
 */
@Service
public class PowerfeesServiceImpl extends BaseServiceImpl<PowerfeesMapper, Powerfees,Integer> implements PowerfeesService {
    @Override
    @Transactional(readOnly = true)
    public PowerFessZBVo pricePortion(DateParameterBo dateParameterBo) {
        PowerFessZBVo powerFessZBVo =  mapper.pricePortion(dateParameterBo);
        return powerFessZBVo;
    }

    @Override
    @Transactional(readOnly = true)
    public List<ElectFormVo> getAllelectformPage(Map<String, Object> map) {
        List<ElectFormVo> electForms = mapper.getAllelectformPage(map);
        return electForms;
    }

    @Override
    @Transactional(readOnly = true)
    public List<ElectFormVo> getElectform(DateParameterBo da) {
        List<ElectFormVo> electForms = mapper.getElectform(da);
        return electForms;
    }

    @Override
    @Transactional(readOnly = true)
    public  List<Powerfees> getElectTrend(DateParameterBo da) {
        List<Powerfees> powerfees = mapper.getElectTrend(da);
        return powerfees;
    }
}
